/**
 * Created by Administrator on 2017/4/6.
 */
//  主模块
(function(angular){
    angular.module('mainApp',
        [
            'mainApproute'
        ])
        .controller('searchCtrl',['$scope','$route','jsonp_services',function($scope,$route){
            //搜索
            $scope.movieSearch = function(){
                if($scope.searchText.length>0){
                    $route.updateParams({type:"search",q:$scope.searchText})
                }
            }
        }])
})(angular)